package org.jeecg.modules.parameter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * @author P
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sim_transfer", schema = "simulator")
@ApiModel(value = "sim_transfer", description = "参数-车站-换乘通道信息")
public class SimTransfer implements Serializable {
    @ApiModelProperty(value = "id（uuid）")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "换乘通道id")
    @TableField("transfer_id")
    private String transferId;

    @ApiModelProperty(value = "换乘通道名称")
    @TableField("transfer_name")
    private String transferName;

    @ApiModelProperty(value = "换乘通道方向")
    @TableField("transfer_direction")
    private String transferDirection;

    @ApiModelProperty(value = "换乘站的换乘ID")
    @TableField("main_station_transfer_id")
    private String mainStationTransferId;


    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @ApiModelProperty(value = "通过时间")
    @TableField("cross_time")
    private String crossTime;

    @ApiModelProperty(value = "通过速度，m/s")
    @TableField("cross_speed")
    private String crossSpeed;

    @ApiModelProperty(value = "换乘通道长度")
    @TableField("transfer_length")
    private String transferLength;

}